#ifndef __MMA_INC__
#define __MMA_INC__

#define MMA7660_SlaveAddress 0x98
#define MMA7660_XOUT 0x00
#define MMA7660_YOUT 0x01
#define MMA7660_ZOUT 0x02
#define MMA7660_TILT 0x03
#define MMA7660_SEST 0x04
#define MMA7660_SPCNT 0x05
#define MMA7660_INTSU 0x06
#define MMA7660_MODE 0x07
#define MMA7660_SR 0x08
#define MMA7660_PDET 0x09
#define MMA7660_PD 0x0A
extern const float Acc_Value_Table[64];
extern const float Acc_AngleXY_Table[43];
extern const float Acc_AngleZ_Table[43];
void MMA7660_write(u8 REG_Address,u8 REG_data);
u8 MMA7660_read(u8 REG_Address);
void MMA7660_Startup(void);
float MMA7660_ConvertAngle(u8 digital,u8 Zaxis);
float MMA7660_ConvertAcc(u8 digital);

#endif
